#include <stdio.h>
#include "/usr/include/mysql/mysql.h"

int main() {
    MYSQL *mysql = NULL;
    if ((mysql = mysql_init(NULL)) == NULL) {
        fprintf(stderr, "error in mysql_init\n");
        exit(1);
    }
    mysql = mysql_real_connect(mysql, "47.99.207.120", "root", "0331", "mysql", 0, 0, 0);

    if(!mysql) {
        fprintf(stderr, "connection failed!\n");
        exit(1);
    }
    printf("Success\n");

    return 0;
}